package mypack.openworld;

import android.content.Context;
import android.graphics.Color;

import org.osmdroid.util.GeoPoint;
import org.osmdroid.views.overlay.Overlay;
import org.osmdroid.views.overlay.PathOverlay;

public class SightBoundaryPolygon extends SightBoundary {

    private Context context;
    private PathOverlay pathOverlay;

    public SightBoundaryPolygon (Context context, int color) {
        this.context = context;
        this.pathOverlay = new PathOverlay(color, context);
    }

    public void addPoint (GeoPoint geoPoint) {
        pathOverlay.addPoint(geoPoint);
    }

    @Override
    public Overlay getOverlay() {
        return pathOverlay;
    }
}
